package com.four.hospital.service.impl;

import com.four.hospital.dao.DiseaseDao;
import com.four.hospital.entity.Disease;
import com.four.hospital.service.DiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:wsy
 * @Date: 2022/01/14/8:46
 * @Description
 */
@Service
public class DiseaseServiceImpl implements DiseaseService {

    @Autowired
    private DiseaseDao diseaseDao;

    /**
     * 查询次数前三
     * @return
     */
    @Override
    public List<Disease> getDiseaseThree() {
        return diseaseDao.getDiseaseThree();
    }
}
